From f5f648c46210811975bd8ba7552302d07f7fd1e2 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 14 Jul 2011 13:22:36 +0100 Subject: [PATCH] libxl: IDL: remove libxl_C_type_of It's not really adding much... Signed-off-by: Ian Campbell Committed-by: Ian Jackson --- tools/libxl/gentypes.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py index 4d108f8421..d6db145f18 100644 --- a/tools/libxl/gentypes.py +++ b/tools/libxl/gentypes.py @@ -17,10 +17,7 @@ def format_comment(level, comment): s += "%s */" % indent s += "\n" return s - -def libxl_C_type_of(ty): - return ty.typename - + def libxl_C_instance_of(ty, instancename): if isinstance(ty, libxltypes.Aggregate) and ty.typename is None: if instancename is None: @@ -28,7 +25,7 @@ def libxl_C_instance_of(ty, instancename): else: return libxl_C_type_define(ty) + " " + instancename else: - return libxl_C_type_of(ty) + " " + instancename + return ty.typename + " " + instancename def libxl_C_type_define(ty, indent = ""): s = "" -- 2.30.2